package ee.parameterConverter;

public class ConversionFailedException extends Exception
{
	private static final long serialVersionUID = 1L;
	
	private Object _originalValue;
	
	public ConversionFailedException(Throwable throwable)
	{
		this(null, throwable);
	}
	
	public ConversionFailedException(String message)
	{
		this(message, null);
	}
	
	public ConversionFailedException(String message, Throwable throwable)
	{
		this(message, null, throwable);
	}
	
	public ConversionFailedException(String message, Object originalValue)
	{
		this(message, originalValue, null);
	}

	public ConversionFailedException(String message, Object originalValue, Throwable throwable)
	{
		super(message, throwable);
		
		_originalValue = originalValue;
	}
	
	public Object getOriginalValue()
	{
		return _originalValue;
	}
}
